<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        table{
            border-collapse: collapse;
        }
    </style>
</head>
<body>
<form action="">
    {% csrf_token %}
    <table border="1" align="center">
        <tr>
            <th>序号</th>
            <th>姓名</th>
            <th>性别</th>
            <th>年级</th>
            <th>专业</th>
            <th>操作</th>
        </tr>
        {% for datum in pager.object_list %}
        <tr>
            <td>{{ datum.id }}</td>
            <td>{{ datum.stu_name }}</td>
            <td>{{ datum.sex }}</td>
            <td>{{ datum.classS }}</td>
            <td>{{ datum.specialized }}</td>
            <td>
                <a href="{% url 'stuinfo:get' datum.id %}">查看</a>
                <a href="{% url 'stuinfo:del' datum.id %}">删除</a>
            </td>
        </tr>
        {% endfor %}
    </table>
</form>
<div align="center">
    {% for page in pagee.page_range %}
        <a href="{% url 'stuinfo:show' page=page %}?name={{ stu_name }}">{{ page }}</a>
    {% endfor %}
</div>
</body>
</html>